<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:76:"D:\phpstudy_pro\WWW\tpshop\public/../application/admin\view\goods\index.html";i:1580612464;s:61:"D:\phpstudy_pro\WWW\tpshop\application\admin\view\layout.html";i:1580870358;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title><?php echo $title; ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link href="/static/admin/css/main.css" rel="stylesheet" type="text/css"/>
    <link href="/static/admin/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="/static/admin/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
    <script src="/static/admin/js/jquery-1.8.1.min.js"></script>
    <script src="/static/admin/js/bootstrap.min.js"></script>
    <script src="/static/admin/js/highcharts.js"></script>
    <script src="/static/admin/js/exporting.js"></script>
    <script src="/static/admin/js/draw.js"></script>

</head>
<body>

    <!-- 上 -->
    <div class="navbar">
        <div class="navbar-inner">
            <div class="container-fluid">
                <ul class="nav pull-right">
                    <li id="fat-menu" class="dropdown">
                        <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user icon-white"></i> <?php echo \think\Session::get('info.nickname'); ?>
                            <i class="icon-caret-down"></i>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a tabindex="-1" href="javascript:void(0);">修改密码</a></li>
                            <li class="divider"></li>
                            <li><a tabindex="-1" href="<?php echo url('admin/Base/logout'); ?>">安全退出</a></li>
                        </ul>
                    </li>
                </ul>
                <a class="brand" href="index.html"><span class="first">后台管理系统</span></a>
                <ul class="nav">
                    <li class="active"><a href="javascript:void(0);">首页</a></li>
<!--                    <li><a href="javascript:void(0);">系统管理</a></li>-->
<!--                    <li><a href="javascript:void(0);">权限管理</a></li>-->
                </ul>
            </div>
        </div>
    </div>
    <!-- 左 -->
    <div class="sidebar-nav">

        <?php foreach($top_nav as $k=>$v): ?>
            <a href="#error-menu<?php echo $k; ?>" class="nav-header collapsed" data-toggle="collapse">
                <i class="icon-exclamation-sign"></i>
                <?php echo $v['auth_name']; ?>
            </a>
            <ul id="error-menu<?php echo $k; ?>" class="nav nav-list collapse in">
                <?php foreach($down_nav as $m): if($m['pid'] == $v['id']): ?>
                        <li>
                            <a href="<?php echo url('admin/'.$m['auth_c'] . '/' . $m['auth_a']); ?>">
                                <?php echo $m['auth_name']; ?>
                            </a>
                        </li>
                    <?php endif; endforeach; ?>
            </ul>
        <?php endforeach; ?>

    </div>
    <!-- 右 -->
    <div class="content">
        <div class="header">
            <h1 class="page-title">商品列表</h1>
        </div>

        <div class="well">
            <!-- search button -->
            <form action="" method="get" class="form-search">
                <div class="row-fluid" style="text-align: left;">
                    <div class="pull-left span4 unstyled">
                        <p> 商品名称：<input class="input-medium" name="" type="text"></p>
                    </div>
                </div>
                <button type="submit" class="btn">查找</button>
                <a class="btn btn-primary" href="<?php echo url('admin/goods/add'); ?>">新增</a>
            </form>
        </div>
        <div class="well">
            <!-- table -->
            <table class="table table-bordered table-hover table-condensed">
                <thead>
                    <tr>
                        <th>编号</th>
                        <th>商品名称</th>
                        <th>商品价格</th>
                        <th>商品数量</th>
                        <th>商品logo</th>
                        <th>添加时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach($data as $v): ?>
                        <tr class="success">
                            <td><?php echo $v['id']; ?></td>
                            <td><a href="<?php echo url('index/goods/goodsItem',['id'=>$v['id']]); ?>"><?php echo $v['goods_name']; ?></a></td>
                            <td><?php echo $v['goods_price']; ?></td>
                            <td><?php echo $v['goods_number']; ?></td>
                            <td><img width="200" height="60" src="<?php echo $v['goods_logo']; ?>" ></td>
                            <td><?php echo $v['create_time']; ?></td>
                            <td>
                                <a href="<?php echo url('admin/goods/edit',['id'=>$v['id']]); ?>"> 编辑 </a>
                                <a href="javascript:void(0);" onclick="if(confirm('确认删除？')) location.href='<?php echo url('admin/goods/delete',['id'=>$v['id']]); ?>'"> 删除 </a>
                            </td>
                        </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
            <!-- pagination -->
            <div class="pagination">
                <ul>
                    <li><a href="#">Prev</a></li>
                    <li><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">3</a></li>
                    <li><a href="#">4</a></li>
                    <li><a href="#">Next</a></li>
                </ul>
            </div>
        </div>
    </div>


</body>
</html>